package com.gzhryc.weixin.api;

/**
 * 微信API响应错误
 * @author 张浩
 * @version 0.3.4
 */
public class ApiResponseException extends Exception{

	private static final long serialVersionUID = 1L;
	
	DefaultApiResponse response;
	
	public ApiResponseException(DefaultApiResponse response){
		this.response = response;
	}

	@Override
	public String getMessage() {
		return this.response.errmsg;
	}
}
